package com.hdoit.ares.logical.acc.service;

import java.util.List;

import com.hdoit.ares.logical.acc.model.AccountInfo;
import com.hdoit.ares.logical.cust.model.Customer;
import com.hdoit.ares.logical.viewmodel.acc.AccountInfoSearch;
import com.tennetcn.common.dao.base.ISuperService;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年11月27日 09:04:11
 * @comment
 */
public interface IAccountInfoService extends ISuperService<AccountInfo>{
	
	public AccountInfo queryModelByCustomerId(String id);
	
	public boolean addAccountInfo(Customer customer);
	
	public List<AccountInfo> queListByCustomerId(String id);
	
	public List<AccountInfo> queryList(AccountInfoSearch accountInfoSearch,PagerModel pagerModel);
	
	//金豆转入余额 
	public Boolean updateGoldToBalance(Customer customer,Double money);
	
	//奖金转入余额 
	public Boolean updateIncomeToBalance(Customer customer,Double money);
	
	public Double queryGoldBean(String id);
	
	//查询当前所有账户的所有余额
	public Double queryAllBalance();

	//更新当前账户余额信息
	public Boolean toBalance(Customer customer, Double money);
    
}